using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace SMS.LaborWindow.Modules
{
    public partial class ScheduleTable : UserControl
    {
        public ScheduleTable()
        {
            InitializeComponent();
            InitializeScheduleTable();
        }

        private string _Caption;

        public string Caption
        {
            get { return grpMain.Text; }
            set { grpMain.Text = value; }
        }


        private void InitializeScheduleTable()
        {
            int currentHour = 0;
            for (int row = 0; row < pnlMain.RowCount; row++)
            {
                for (int col = 0; col < pnlMain.ColumnCount; col++)
                {
                    ScheduleButton btnItem = new ScheduleButton();
                    btnItem.CurrentHour = 0;
                    btnItem.CurrentHour = currentHour;
                    btnItem.Dock = DockStyle.Fill;
                    this.pnlMain.Controls.Add(btnItem, col, row);
                    currentHour += 1;
                }
            }
            //throw new Exception("The method or operation is not implemented.");
        }
    }
}
